import card.ArrayListCard;
import card.Card;

import java.util.ArrayList;
import java.util.List;

import static card.ArrayListCard.cardsList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏李涛
 * Date: 2024-06-16
 * Time: 18:58
 */
public class Test {

    public static void main(String[] args) {
        
        //给牌初始化，买52张牌

        ArrayListCard arrayListCard = new ArrayListCard();
        List<Card> ret = arrayListCard.buyCard();
        System.out.print("买来的牌数" + ret + " ");

        System.out.println();
        System.out.println();

        //洗牌
        List<Card> ret1 = arrayListCard.shuffle(cardsList);
        System.out.print("洗牌后" + ret1 + " ");

        System.out.println();
        System.out.println();

        //揭牌
        List<List<Card>> ret2 = arrayListCard.playCard(cardsList);

        for (int i = 0; i </*这里注意，访问的是返回集合的二维数组*/ ret2.size(); i++) {
            System.out.print("玩家" + (i+1) + "揭的牌" + ret2.get(i)/*通过二维数组访问三个玩家*/ + " ");
            System.out.println();
        }

    }
}
